package com.example.storagemodule

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View


class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

    fun onClickSP(view: View) {
        //SharedPreferences存储
        startActivity(Intent(this,SpActivity::class.java))
    }
    fun onClickIF(view: View) {
        //内部文件存储
        startActivity(Intent(this,IFActivity::class.java))
    }
    fun onClickOF(view: View) {
        //外部文件存储
    }
    fun onClickDB(view: View) {
        //数据库存储
        startActivity(Intent(this,DBActivity::class.java))
    }
    fun onClickNW(view: View) {
        //网络存储
        startActivity(Intent(this,NetWorkActivity::class.java))
    }

    fun onClickFile(view: View) {
        //文件存储
        startActivity(Intent(this,FileActivity::class.java))
    }
}